//*****************************************************************************
//
// ABEC3 Solving Script
// Project: Room 2D
//
//*****************************************************************************

// Example for Dim=2D of two coupled rooms

Control_Solver
  f1=2;  f2=300;  NumFrequencies=48;  Abscissa=log;
  MeshFrequency=1000Hz
  Dim=2D


// In 2D we specify only x and y coordinates.
Nodes  "N"
  //    x        y
  1001   0.0     2.0
  1002   0.0     9.0
  1003  10.0     9.0
  1004  10.0     0.0

  2001  3.0      2.0
  2002  3.0      6.0
  2003  7.0      6.0
  2004  7.0      0.0

  3001  6.5      7.0
  3002  6.5      8.0
  3003  6.5      9.0
  3004  7.3      7.6     // Door
  3005  6.5      6.0

  // Source point
  5001  1.5      3.0


// First room
Elements "R1"
  Subdomain=1
  RefNodes="N"
  SwapNormals
  101  1001  1002
  102  1002  3003
  103  3003  3002
  105  3004  3001
  106  3001  3005
  107  3005  2002
  108  2002  2001
  109  2001  1001


// The door connects both rooms
// The door can be opend and closed with the help of node 3004
Elements "Door"
  Subdomain=2,1
  RefNodes="N"
  104  3002  3004


// Second room
Elements "R2"
  Subdomain=2
  RefNodes="N"
  103  3003  3002
  105  3004  3001
  106  3001  3005
  107  3005  2003
  108  2003  2004
  109  2004  1004
  110  1004  1003
  111  1003  3003


// Pressure source point
Pressure_Points
  DrvGroup=1001
  Subdomain=1
  RefNodes="N"
  101  5001  Weight=1.0